package jmpo.cls;

public class SimpleClassTest {
    public static void main(String[] args) {
        {
            var simpleOjbect = new SimpleClass(12345);
            System.out.println(simpleOjbect.isInnerDataPalindrom());
            // expected false
        }

        {
            var simpleOjbect = new SimpleClass(12344321);
            System.out.println(simpleOjbect.isInnerDataPalindrom());
            // expected true
        }

        {
            var simpleOjbect = new SimpleClass(123);
            System.out.println(simpleOjbect.isPalindrom(45654));
            // expected true
        }

        {
            var simpleOjbect = new SimpleClass(0);
            System.out.println(null == simpleOjbect.publicName);
            // expected true
        }

        {
            var simpleOjbect = new SimpleClass(0);
            simpleOjbect.publicName = new String("NewName");
            System.out.println("NewName" == simpleOjbect.publicName);
            // expected false
            System.out.println("NewName".equals(simpleOjbect.publicName));
            // expected true
        }

        {
            var simpleOjbect = new SimpleClass(0);
            simpleOjbect.setId(23);
            System.out.println(23 == simpleOjbect.getId());
            // expected true
        }

        {
            var simpleOjbect = new SimpleClass(0);
            System.err.println(0 == simpleOjbect.getId());
            // expected true
        }
    }
}
